/* ----------------- 网站入口:xtx-entry -----------------*/
.xtx-entry {
    width: 100%;
    height: 500px;
    background-color: #f5f5f5;
}

.xtx-entry .container {
    /* 子绝父相 */
    position: relative;
    height: 500px;
    /* ps */
    background-color: skyblue;
    overflow: hidden;
}

/* 轮播图 */
.xtx-entry .container .focus {
    /* 使用动画函数的前提, 该元素必须有定位 */
    /* 这里的定位一定要加!, 是为了轮播图移动做准备 */
    position: absolute;
    top: 0;
    left: 0;
    width: 600%;
}

.xtx-entry .container .focus li {
    float: left;
}

.xtx-entry .container .focus li img {
    width: 1240px;
    height: 500px;
}


.xtx-entry .container .category {
    /* 子绝父相 */
    position: absolute;
    top: 0;
    left: 0;
    width: 251px;
    height: 500px;
    background-color: #000000;
    opacity: 0.8;
}

.xtx-entry .category li {
    /* 子绝父相 */
    position: relative;
    height: 50px;
    line-height: 50px;
    padding-left: 36px;
    box-sizing: border-box;
}

/* 这个 > 符号也是要点击的!!!, 所以这里选择 a标签的伪元素, 而不是选择li标签的伪元素 */
.xtx-entry .category a::after {
    content: '';
    /* 默认的伪元素是行内元素, 无法设置宽高,
        解决方式有很多种, 1) 给伪元素设置定位, 达到可以设置宽高效果
                        2) 把它转出行内块元素即可 display: inline-block */
    position: absolute;
    top: 19px;
    left: 226px;
    width: 6px;
    height: 11px;
    /*background-color: pink;*/
    background-image: url('../images/sprites.png');
    background-position: -80px -110px;
}

.xtx-entry .category li a {
    font-size: 14px;
    color: #ffffff;
}

.xtx-entry .category li:hover {
    background-color: #27ba9b;
}

.xtx-entry .category li a span {
    font-size: 16px;
    margin-right: 15px;
}

/*<!-- 轮播图上面的左右箭头 -->*/
.xtx-entry .prev {
    display: none;
    /*display: inline-block;*/
    position: absolute;
    top: 228px;
    left: 260px;
    width: 45px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0;
}

/* 同理这个左右箭头也是要点击的, 所以把伪元素加在a标签上面 */
.xtx-entry .prev::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 23px;
    background-image: url('../images/sprites.png');
    background-position: 0 -70px;
    margin: 11px 18px 10px 14px;
    box-sizing: border-box;
}

.xtx-entry .next {
    display: none;
    /*display: inline-block;*/
    position: absolute;
    top: 228px;
    right: 10px;
    width: 45px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0;
}

.xtx-entry .next::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 23px;
    background-image: url('../images/sprites.png');
    background-position: -40px -70px;
    margin: 11px 13px 10px 18px;
    box-sizing: border-box;
}

/*<!-- 轮播图指示器 -->*/
.xtx-entry .indicator {
    position: absolute;
    top: 459px;
    left: 680px;
    width: 110px;
    height: 10px;
}

.xtx-entry .indicator li {
    float: left;
    width: 9px;
    height: 10px;
    background-color: rgba(255, 255, 2552, 0.43);
    border-radius: 50%;
    margin-right: 15px;

    /* 鼠标经过显示小手 */
    cursor: pointer;
}

.xtx-entry .indicator li:last-child {
    margin-right: 0;
}


.xtx-entry .indicator li.active {
    background-color: #ffffff;
}


/* ----------------- 新鲜好物模块: xtx-new-goods ----------------- */
.xtx-new-goods {
    height: 520px;
}

/* 好物模块的头部 */
.xtx-new-goods .goods-hd {
    height: 115px;
    /* ps */
    /*background-color: skyblue;*/
}

.xtx-new-goods .goods-hd h2 {
    margin-top: 48px;
    margin-bottom: 38px;
    float: left;
    /* h2是块级标签, 盒子的高度是根据内容来决定的, 但可以提前设置高度*/
    width: 115px;
    height: 29px;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 0;
    color: #333;
}

.xtx-new-goods .goods-hd span {
    margin: 59px 34px 32px 0;
    display: inline-block;
    font-size: 16px;
    color: #999999;
}

.xtx-new-goods .goods-hd a {
    float: right;
    display: inline-block;
    margin: 59px 0 40px 0;
    width: 85px;
    height: 16px;
    font-size: 16px;
    color: #999999;
}

.xtx-new-goods .goods-hd a::after {
    content: '';
    margin-left: 13px;
    display: inline-block;
    width: 7px;
    height: 13px;
    /*background-color: red;*/
    background-image: url('../images/sprites.png');
    background-position: 0 -110px;
}

/* 好物模块的列表 */
.xtx-new-goods .goods-list {
    height: 405px;
    /*background-color: skyblue;*/
}

.xtx-new-goods .goods-list ul {
    /*width: 1240px;*/
}

.xtx-new-goods .goods-list li {
    position: relative;
    /* bug点: 设置li标签左浮动之后, 但是 li标签并没有浮动父元素盒子的最左边,
        而是被卡住了, 父元素盒子左边留出来一篇空白区域
         可能原因: 左上角浮动的盒子下面一部分挡到当前父类盒子的左上角, 所以造成了设置浮动卡住的现象*/
    top: 0;
    float: left;
    margin-right: 8px;
    width: 304px;
    height: 405px;
    background-color: #f0f9f4;
    text-align: center;
    /*  feat: 添加动画过度特性 */
    transition: top 0.3s, box-shadow 0.3s;
}

.xtx-new-goods .goods-list li:hover {
    top: -3px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.xtx-new-goods .goods-list li:last-child {
    margin-right: 0px;
}

.xtx-new-goods .goods-list li img {
    width: 100%;
    height: 305px;
}

.xtx-new-goods .goods-list li h3 {
    font-size: 20px;
    margin-top: 22px;
    font-weight: normal;
    color: #333333;
}

.xtx-new-goods .goods-list li p {
    margin-bottom: 21px;
    font-size: 23px;
    color: #9a2e1f;
}

.xtx-new-goods .goods-list li p span {
    font-size: 17px;
}

.xtx-new-goods .goods-list .new-product {
    display: inline-block;
    position: absolute;
    top: 18px;
    left: 17px;
    padding-top: 7px;
    padding-bottom: 8px;
    border: 2px solid #27ba9b;
    width: 28px;
    height: 51px;
    border-radius: 4px;
    box-sizing: border-box;
    color: #27ba9b;
    font-size: 18px;
    line-height: 18px;
}


/* todo 生鲜商品模块 | 最新主题模块 样式*/
/* ----------------- 生鲜商品模块: xtx-fresh-goods ----------------- */


/* ----------------- 最新主题模块: topics ----------------- */
